package org.example.service;

import org.example.pojo.Category;
import org.example.pojo.Result;

import java.util.List;

public interface CategoryService {
    Result add(Category category);

    Result<List<Category>> list();

    Result<Category> detail(Integer id);

    Result update(Category category);

    Result delete(Integer id);
}
